package org.wsalger.webserviceimpl;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.wsalger.model.ZMWeekreport;
import org.wsalger.service.UserServiceI;
import org.wsalger.service.ZMWeekServiceI;
import org.wsalger.webservice.WebServiceI;

@WebService
public class WebServiceImpl implements WebServiceI {
	private UserServiceI userService;
	private ZMWeekServiceI zmWeekService;
	public UserServiceI getUserService() {
		return userService;
	}
	@Autowired
	public void setUserService(UserServiceI userService) {
		this.userService = userService;
	}
	public ZMWeekServiceI getZmWeekService() {
		return zmWeekService;
	}
	@Autowired
	public void setZmWeekService(ZMWeekServiceI zmWeekService) {
		this.zmWeekService = zmWeekService;
	}
	
	@Override
	public String f_getSystemDate() {
		// TODO Auto-generated method stub
		return userService.getSystemDate();
	}
	@Override
	public String f_userLogin(String in_UserName,String in_UserPass) {
		// TODO Auto-generated method stub
		return userService.getUser(in_UserName, in_UserPass);
	}
	@Override
	public List<HashMap> f_getAllWeekly() {
		return zmWeekService.getAllWeekly();
	}
	@Override
	public List<HashMap> f_getWeeklyByDate(Date d) {
		// TODO Auto-generated method stub
		return zmWeekService.getWeeklyByDate(d);
	}
	@Override
	public List<HashMap> f_getWeeklyByUser(Long l) {
		// TODO Auto-generated method stub
		return zmWeekService.getWeeklyByUser(l);
	}
	@Override
	public List<HashMap> f_getWeeklyByUserDate(Long l,Date d) {
		// TODO Auto-generated method stub
		return zmWeekService.getWeeklyByUserDate(l, d);
	}
	@Override
	public List<HashMap> f_getWeeklyNotVerify(Boolean b) {
		// TODO Auto-generated method stub
		return zmWeekService.getWeeklyNotVerify(b);
	}
	@Override
	public ZMWeekreport f_getWeeklyFull(Long l) {
		// TODO Auto-generated method stub
		return zmWeekService.getWeeklyFull(l);
	}
	@Override
	public String f_addNewWeekly(ZMWeekreport z) {
		// TODO Auto-generated method stub
		return zmWeekService.g_addNewWeekly(z);
	}
	@Override
	public String f_editWeekly(ZMWeekreport z) {
		// TODO Auto-generated method stub
		return zmWeekService.g_editWeekly(z);
	}
	@Override
	public String f_delWeekly(Long l) {
		// TODO Auto-generated method stub
		return zmWeekService.g_delWeekly(l);
	}
	@Override
	public String f_verWeekly(Long l) {
		// TODO Auto-generated method stub
		return zmWeekService.g_verWeekly(l);
	}
	
}
